<?php
/**
 * Created by PhpStorm.
 * User: mark
 * Date: 18-10-21
 * Time: 下午2:24
 * 退出登录
 */
namespace Api\Home;

use Common\JsonApi;
use Common\PlutoApi;
use Common\Request;
use Common\RequestApi;
use Common\Response;
use Common\ResponseApi;
use Event\EventCenter;
use Event\LoginOutEvent;
use Event\LoginOutEventListener;

class PlutoLoginOutRequestData extends RequestApi{

}

class PlutoLoginOutResponseData extends ResponseApi{

}

class PlutoLoginOut extends JsonApi {
  protected function run(Request $request, Response $response) {
    $user_id = "tryaydaydauq131321";
    $loginOutEvent = new LoginOutEvent($user_id);
    EventCenter::default()->postEvent($loginOutEvent);
  }
}

